package uy.com.tsi2G7.superbet.event;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name="MARKET_RESULT")
@Entity
public class EventMarketResult {
	
	@Id 
	@Column(name="ID",length=50)
	private Long id;
	@Column(name="NAME",length=255)
	private String name;
	@Column(name="TYPE_ID",length=50)
	private Long eventTypeId;
	@Column(name="MARKET_ID",length=50)
	private long marketId;
	@Column(name="EVENT_ID",length=50)
	private long eventId;
	@Column(name="AMOUNT")
	private BigDecimal amount;
	@Column(name="WIN")
	private BigDecimal winAmount=BigDecimal.valueOf(-1);
	@Column(name="SOURCE_",length=50)
	@Enumerated(EnumType.STRING)
	private EventSource source;
	
	
	public BigDecimal getWinAmount() {
		return winAmount;
	}
	public void setWinAmount(BigDecimal winAmount) {
		this.winAmount = winAmount;
	}
	public long getMarketId() {
		return marketId;
	}
	public void setMarketId(long marketId) {
		this.marketId = marketId;
	}
	public long getEventId() {
		return eventId;
	}
	public void setEventId(long eventId) {
		this.eventId = eventId;
	}
	public long getEventTypeId() {
		return eventTypeId;
	}
	public void setEventTypeId(long eventTypeId) {
		this.eventTypeId = eventTypeId;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public EventSource getSource() {
		return source;
	}
	public void setSource(EventSource source) {
		this.source = source;
	}
	
	

}
